package com.itany.service;

import com.github.pagehelper.PageInfo;
import com.itany.exception.ManagerServiceException;
import com.itany.pojo.Role;

import java.util.List;

public interface RoleService {


    void addRole(String name, Integer[] pids) throws ManagerServiceException;

    PageInfo<Role> findAll(Integer page, Integer rows, String name);

    void delete(Integer id);

    void updateRole(Integer id, String name, Integer[] pids) throws ManagerServiceException;

    List<Role> findAll();
}
